Explanation:
The CONE_SCRIPT node contains all the important information to
connect the VRML to the Java file.
- The url field is the file location
of the Java class which drives the animation. The class must be a child
of the Script class in CP's Java library.
- The field is the name of a node which can be passed
to Java and can be manipulated using the various functions form the
library. In this example we won't make use of it.
- The clicked eventIn field is like a function declaration
which allows us to route events from the VRML to a function in the
Java program.
- The theRot field is of type SFRotation which means its
value if a vector of 4 floats. The first three are the axis of rotation
and the fourth is the angle in radians. The value for this will be set
through Java and connected to the rotation value of the Cone.